package com.fangzhi.mobel.vo;

import com.fangzhi.utils.GlobalParam;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class QueryOrderLogisticsDetailVo implements Serializable {

    private String orderId;
    private String customerName;
    private String hotelName;
    private String accountName;
    private double totalAmount;
    private double depositAmount;
    private double logisticsAmount;
    private List<Detail> detailList;

    @Data
    @Accessors(chain = true)
    public static class Detail{
        private String id;
        private String logisticsCompany;
        private String trackingNumber;
        private String shipTime;
        private String accountName;
        private String comments;
        private String mobile;
        private String image;

        public void setImage(String image) {
            if (StringUtils.hasText(image))
                this.image = GlobalParam.IMAGE_URL + image;
        }
    }
}
